package com.fone.player.play;

/**
 * 视频播放EventBus消息，模仿Message，为了区分消息，所以没有用Message
 * 
 * @author kongxiaojun
 * @since 2014-6-17
 */
public class VideoPlayerMessage {
	public static final int MESSGAE_CHANGE_VIDEO = 1;// 改变播放视频消息
	public static final int MESSGAE_CHANGE_FROM = 2;// 改变来源消息
	public static final int MESSGAE_OPEN_RELEATED = 3;// 打开相关视频消息
	public static final int MESSGAE_HEADSETPLUG_OUT = 4;// 耳机拔出消息
	public static final int MESSGAE_SCREEN_OFF = 5;// 屏幕熄灭
	public static final int MESSGAE_SDCARD_EJECT = 6;// sd卡拔出
	public static final int MESSGAE_CALL_STATE_RINGING = 7;// 来电响铃
	public static final int MESSGAE_USER_PRESENT = 8;// 来电响铃

	public int what;
	public int arg1;
	public int arg2;
	public Object obj;

	public VideoPlayerMessage() {
		super();
		// TODO Auto-generated constructor stub

	}

	public VideoPlayerMessage(int what) {
		super();
		this.what = what;
	}

	@Override
	public String toString() {
		return "VideoPlayerMessage [what=" + what + ", arg1=" + arg1 + ", arg2=" + arg2 + ", obj=" + obj.toString() + "]";
	}

}
